package cn.wolfcode.mapper;

import cn.wolfcode.domain.Activity;
import cn.wolfcode.domain.ActivityItem;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ActivityItemMapper {

    List<ActivityItem> selectByActivityItemId(Long activityItemId);

    void updateVoteNum(Long optionsRadios);

    void insetRelation(@Param("optionsRadios") Long optionsRadios, @Param("id") Long id, @Param("date") Date date);

    Activity checkVote(@Param("id") Long id, @Param("activityId") Long activityId);
}